package com.example.service;

import com.baomidou.mybatisplus.service.IService;
import com.example.controller.employee.req.AttendanceReq;
import com.example.entity.BO.AttendanceStatisticBO;
import com.example.entity.BO.TimeValueBO;
import com.example.entity.EmployeeClock;

import java.util.List;

/**
 * @author ChenXiaoBin
 * on 2020-08-18
 */
public interface IEmployeeClockService extends IService<EmployeeClock> {
    /**
     * 实现用户打卡功能
     * @param employeeId 员工ID
     */
    void clockIn(Integer employeeId);

    /**
     * 用户指定月份考勤统计
     * @param req
     * @return
     */
    List<AttendanceStatisticBO> attendance(AttendanceReq req);

    /**
     * 统计近七天打卡率
     * @return
     */
    List<TimeValueBO> getTimeVale();
}
